package com.library.framework.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 对象存储配置类
 *
 * @auther: wanghongjie
 * @blame: wanghongjie
 * @date: 2020-05-04 10:20
 * @Description:
 */
@Configuration
@PropertySource(value = "classpath:application.yml")
public class CosConfig {

    @Value("${cos.tx.secretId}")
    private String secretId;
    @Value("${cos.tx.secretKey}")
    private String secretKey;
    @Value("${cos.tx.bucketName}")
    private String bucketName;
    @Value("${cos.tx.url}")
    private String url;
    @Value("${cos.tx.expiration}")
    private String expiration;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getExpiration() {
        return expiration;
    }

    public void setExpiration(String expiration) {
        this.expiration = expiration;
    }

    public String getSecretId() {
        return secretId;
    }

    public void setSecretId(String secretId) {
        this.secretId = secretId;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }
}
